import pygame
import sys
from game import Game

def main():
    pygame.init()
    # 设置更大的窗口
    screen_width = 1200
    screen_height = 800
    screen = pygame.display.set_mode((screen_width, screen_height), pygame.SRCALPHA)
    pygame.display.set_caption("StarCraft Prototype")
    clock = pygame.time.Clock()
    
    game = Game(screen)
    
    while True:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                pygame.quit()
                sys.exit()
            game.handle_event(event)
        
        game.update()
        game.draw()
        pygame.display.flip()
        clock.tick(60)

if __name__ == "__main__":
    main() 